package com.example.chainOfResponsibility.extend;

import com.example.chainOfResponsibility.Handler;

public class HandlerThree extends Handler {

    @Override
    public void handleRequest(int request) {
        if (request > 20 && request <= 30) {
            System.out.println(this.getClass().getSimpleName() + "处理了请求");
        } else if (nextHandler != null) {
            nextHandler.handleRequest(request);
        }
    }
}
